function proxyData(vm,target,key) {
    Object.defineProperty(vm,key,{
        get(){
            return vm[target][key];
        },
        set(newValue){
            vm[target][key] = newValue;
        }
    })
}

export default proxyData;